package com.neusoft.blog.controller;


import com.neusoft.blog.bean.RespBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello1(){
        return "HelloSer";
    }
    @GetMapping("/user/hello")
    public String hello2(){
        return "HelloSeruser";
    }
    @GetMapping("/admin/hello")
    public String hello3(){
        return "HelloSeradmin";
    }
    @GetMapping("/dba/hello")
    public String hello5(){
        return "HelloSerdba";
    }
    @GetMapping("/login")
    public RespBean hello4(){
        return RespBean.error(401,"请先登陆",null);
    }

}
